home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / oleo-1_4.lha / oleo-1.4 / forminfo.c < prev    next >
C/C++ Source or Header  |  1993-05-21  |  38KB  |  1,369 lines

  1. /*    Copyright (C) 1993 Free Software Foundation, Inc.
  2.  
  3. This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation; either version 2, or (at your option)
  6. any later version.
  7.  
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11. GNU General Public License for more details.
  12.  
  13. You should have received a copy of the GNU General Public License
  14. along with this software; see the file COPYING.  If not, write to
  15. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  16.  
  17.  
  18. #include "sysdef.h"
  19. #include "forminfo.h"
  20.  
  21. char * formula_info[] =
  22. {
  23.    /* Syntax advice */
  24. "*number-syntax*",
  25. "Numbers must be entered in 'general' format:",
  26. "    [-]digits[.digits][e[-]digits]",
  27. 0,
  28. "*string-syntax*",
  29. "Strings are entered surrounded by double-quotes.  To include unusual",
  30. "characters, you can either quote them with backslash ",
  31. "(e.g. \"a \\\"quoted\\\" quote\") use \\nnn where nnn is the octal code for",
  32. "the character you want to include. ",
  33. 0,
  34. "*expression-syntax*",
  35. "            Infix expressions:",
  36. "",
  37. "- num            0-num",
  38. "! bool            #TRUE if bool is #FALSE",
  39. "            #FALSE if bool is #TRUE, error otherwise.",
  40. "",
  41. "num1 ^ num2        Exponentiation  This is *right* associative!",
  42. "num1 * num2        Multiplication  Note that these functions are not as",
  43. "num1 / num2        Division    good as they should be at detecting",
  44. "int1 % int2        Modulus        overflow.  There *is* code that should",
  45. "",
  46. "num1 + num2        Addition    force integer expressions to become",
  47. "num1 - num2        subtraction    floating-point if the result wouldn't",
  48. "                    fit in an integer.",
  49. "num1 >= num2        Arithmatic greater-or-equal",
  50. "num1 > num2        greater-than",
  51. "num1 < num2        less-than",
  52. "num1 <= num2        less-than-or-equal",
  53. "",
  54. "val1 = val2        #TRUE if val1 and val2 can be considered equal.",
  55. "            #FALSE otherwise",
  56. "val1 != val2        Equivalent to !(val1=val2)",
  57. "",
  58. "str1 & str2        Text concatination.",
  59. "",
  60. "bool ? val1 : val2    if(bool==#TRUE)",
  61. "                evaluate val1",
  62. "            else if(bool!=#FALSE)",
  63. "                error...",
  64. "            else",
  65. "                evaluate val2.",
  66. "",
  67. "(val)            (To override default precedence) Note that since oleo",
  68. "            stores expressions in a byte-compiled form, excess",
  69. "            parens will mysteriously vanish.",
  70. 0,
  71.  
  72.  
  73.     /* Error values. */
  74.  
  75. "#TRUE",
  76. "The logical TRUE value",
  77. 0,
  78. "#FALSE",
  79. "The logical FALSE value",
  80. 0,
  81. "#ERROR",
  82. "An unclassified error.",
  83. 0,
  84. "#BAD_INPUT",
  85. "Indicates an inappropriate parameter to a formula function.",
  86. 0,
  87. "#NON_NUMBER",
  88. "An error value.",
  89. 0,
  90. "#NON_STRING",
  91. "An error value.",
  92. 0,
  93. "#NON_BOOL",
  94. "An error value.",
  95. 0,
  96. "#NON_RANGE",
  97. "An error value.",
  98. 0,
  99. "#OUT_OF_RANGE",
  100. "An error value.",
  101. 0,
  102. "#NO_VALUES",
  103. "An error value.",
  104. 0,
  105. "#DIV_BY_ZERO",
  106. "An error value.",
  107. 0,
  108. "#BAD_NAME",
  109. "An error value that indicates an invalid variable name.  ",
  110. "It may be the symptom of an incorrectly written address.",
  111. 0,
  112. "#NOT_AVAIL",
  113. "An error value.",
  114. 0,
  115. "#PARSE_ERROR",
  116. "An error value.",
  117. 0,
  118. "#NEED_OPEN",
  119. "An error value that indicates a missing open parenthesis.",
  120. 0,
  121. "#NEED_CLOSE",
  122. "An error value that indicates a missing close parenthesis.",
  123. 0,
  124. "#NEED_QUOTE",
  125. "An error value.",
  126. 0,
  127. "#UNK_CHAR",
  128. "An error value.",
  129. 0,
  130. "#UNK_FUNC",
  131. "An error value.",
  132. 0,
  133. "#INF",
  134. "An error value.",
  135. "On some machines this may be indistinguishable from other values.",
  136. 0,
  137. "#INFINITY",
  138. "An error value.",
  139. "On some machines this may be indistinguishable from other values.",
  140. 0,
  141. "#NAN",
  142. "An error value.",
  143. "On some machines this may be indistinguishable from other values.",
  144. 0,
  145. "#NOT_A_NUMBER",
  146. "An error value.",
  147. "On some machines this may be indistinguishable from other values.",
  148. 0,
  149. "#NINF",
  150. "An error value.",
  151. "On some machines this may be indistinguishable from other values.",
  152. 0,
  153. "#MINUS_INFINITY",
  154. "An error value.",
  155. "On some machines this may be indistinguishable from other values.",
  156. 0,
  157.  
  158.  
  159.  
  160.         /* Functions releated to boolean values. */
  161.  
  162. "if",
  163. "Conditional operator            if(bool,val1,val2)",
  164. "",
  165. "If BOOL is #TRUE, the value is VAL1;",
  166. "if BOOL is #FALSE, the value is VAL2;",
  167. "if BOOL is neither #TRUE or #FALSE, then the value is #NON_BOOL",
  168. 0,
  169. "and",
  170. "Boolean operator            and(bool1,bool2)",
  171. "",
  172. "If both BOOL1 and BOOL2 are #TRUE, the value is #TRUE;",
  173. "otherwise, if both are boolean values, the value is #FALSE;",
  174. "otherwise, the value is #NON_BOOL.",
  175. 0,
  176. "or",
  177. "Boolean operator            or(bool1,bool2)",
  178. "",
  179. "If both BOOL1 and BOOL2 are booleans, then the value is #TRUE if either",
  180. "argument is #TRUE, and #FALSE if both are #FALSE.",
  181. "If either argument is not a boolean, the value is #NON_BOOL.",
  182. 0,
  183. "not",
  184. "Boolean operator            not(bool)",
  185. "",
  186. "#TRUE if BOOL is #FALSE,",
  187. "#FALSE if BOOL is #TRUE, ",
  188. "and otherwise, #NON_BOOL.",
  189. 0,
  190. "iserr",
  191. "Error predicate                iserr(val)",
  192. "",
  193. "#TRUE if the VAL is an error, otherwise #FALSE",
  194. 0,
  195. "isnum",
  196. "Number predicate            isnum(val)",
  197. "",
  198. "#TRUE if the VAL is a number, or can be automatically converted to a number.",
  199. "Thus `isnum(\"12\")' is #TRUE, while `isnum(\"dsfjbk\") is #FALSE.",
  200. 0,
  201.  
  202.  
  203.     /* Functions that reflect the structure of the spreadsheet. */
  204. "row",
  205. "A cell's row address            row()",
  206. "",
  207. "The row number of the cell the expression is in.",
  208. 0,
  209. "col",
  210. "A cell's column address        col()",
  211. "",
  212. "The column number of the cell the expression is in.",
  213. 0,
  214. "rows",
  215. "Rows in a range            rows(rng)",
  216. "",
  217. "The number of rows in RNG.",
  218. 0,
  219. "cols",
  220. "Columns in a range            cols(rng)",
  221. "",
  222. "The number of columns in RNG.",
  223. 0,
  224. "my",
  225. "Cell reflection                my(str)",
  226. "",
  227. "The function `my' returns information about the cell containing the formula.",
  228. "The argument STR is a key to say what should be returned.  Valid arguments are:",
  229. "",
  230. " KEY        RETURNS",
  231. "",
  232. "row        row address (as an integer)",
  233. "column        column address (as an integer)",
  234. "width        width, (as an integer)",
  235. "lock        \"locked\" or \"unlocked\"",
  236. "protection    (this is a synonym for \"lock\")",
  237. "justify        \"left\", \"right\", \"center\" or \"default\"",
  238. "alignment    (this is a synonym for \"justify\")",
  239. "format        \"default\", \"user-1\", etc.",
  240. "fmt        (this is a synonym for \"format\")",
  241. "type        \"error\", \"boolean\", \"float\",\"integer\", \"null\", \"Unknown\", etc.",
  242. "formula        A string of the cell's current formula.",
  243. "value        The cells current value.",
  244. "anything-else    error--> #BAD_INPUT",
  245. 0,
  246. "curcell",
  247. "Reflection on the current cell        curcell(str)",
  248. "",
  249. "Curcell takes the same arguments as `my', but returns information about the ",
  250. "current location of the cell-cursor, instead of the cell containing this",
  251. "formula.",
  252. "",
  253. "Curcell is updated on a timer interrupt.",
  254. 0,
  255. "cell",
  256. "General cell reflection            cell(row,col,str)",
  257. "",
  258. "`Cell' takes a ROW and COL address, and a STR that is like an argument to `my'.",
  259. "It returns information about the cell at ROW,COL.",
  260. 0,
  261. "member",
  262. "Search for values            member(rng,val)",
  263. "",
  264. "Returns the index of the first cell in RNG that contains VAL, or zero",
  265. "if no cells contain it.  It is permissable for VAL to be an error",
  266. "value.",
  267. 0,
  268. "smember",
  269. "Search for a substring            smember(rng,str)",
  270. "",
  271. "Returns the index of the first cell in RNG that contains STR as a substr.",
  272. "Returns 0 if no cells match.  If STR is empty, then it matches an",
  273. "empty cell (see also `members').",
  274. 0,
  275. "members",
  276. "Search for a substring            members(rng,str)",
  277. "",
  278. "Returns the index of the first  cell in RNG that contains STR as a substr.",
  279. "Returns 0 if no cells match.  This function will never return the",
  280. "address of an empty cell, but see `smember'.",
  281. 0,
  282. "pmember",
  283. "Search for an initial substring        pmember(rng,str)",
  284. "",
  285. "Returns the index of the first cell in RNG whose value equals the",
  286. "first few characters of STR.  If STR is empty, an empty cell may be",
  287. "matched (but see `memberp').",
  288. 0,
  289. "memberp",
  290. "Search for an initial substring        memberp(rng,str)",
  291. "",
  292. "Returns the index of the first cell in RNG whose value equals the",
  293. "first few characters of STR.  This function will never return the",
  294. "address of an empty cell, but see `pmember'.",
  295. 0,
  296. "hlookup",
  297. "Number-keyed table lookup        hlookup(rng,num,int)",
  298. "",
  299. "Scan through the top row of RANGE looking for a number which is",
  300. "greater than NUM.  Then return the value in the cell that is INT rows",
  301. "down from the top of the range.",
  302. 0,
  303. "vlookup",
  304. "Number-Keyed table lookup        vlookup(rng,num,int)",
  305. "",
  306. "Scan through the left col of RANGE looking for a number which is",
  307. "greater than NUM.  Then return the value in the cell that is INT cols",
  308. "over from the left edge of the range.",
  309. 0,
  310. "vlookup_str",
  311. "String-keyed table lookup        vlookup_str(rng,str,num)",
  312. "",
  313. "Scan through the left col of RANGE looking for a cell that contains",
  314. "STR.  Then return the value in the cell that is INT columns over from",
  315. "the left edge of the range.",
  316. 0,
  317. "now",
  318. "Time of day                now()",
  319. "",
  320. "The current time in seconds since Jan 1 1970.",
  321. 0,
  322.  
  323. "ctime",
  324. "The current time of day            ctime(num)",
  325. "",
  326. "Convert NUM into a readable date/time string.",
  327. "NUM should be seconds since the epoch; as returned by `now()' for example.",
  328. 0,
  329. "index",
  330. "Table lookup                index(rng,x), index(rng,relrow,relcol)",
  331. "",
  332. "In the first form, the contents of a cell in RNG, at offset X.  The lookup is",
  333. "in the first column (though it may wrap to other columns).",
  334. "",
  335. "In the second form, the contents of a cell in RNG, RELROW rows and RELCOL",
  336. "columns from the upper left corner of the range.",
  337. 0,
  338.  
  339.  
  340.  
  341.     /* General arithmetic*/
  342.  
  343. "abs",
  344. "Absolute value                abs(num)",
  345. "",
  346. "The absolute value of NUM.",
  347. 0,
  348. "int",
  349. "Convesion to integer            int(num)",
  350. "",
  351. "Convert NUM to integer (toward zero).  ",
  352. "See also `floor', and `ceil'.",
  353. 0,
  354. "ceil",
  355. "Conversion to integer            ceil(num)",
  356. "",
  357. "Convert NUM to integer (round up).",
  358. "See also `floor', and `int'.",
  359. 0,
  360. "floor",
  361. "Conversion to integer            floor(num)",
  362. "",
  363. "Convert NUM to integer (round down)",
  364. "See also `ceil', and `int'.",
  365. 0,
  366. "fixed",
  367. "Fixed decimal rounding            fixed(num1,num2)",
  368. "",
  369. "NUM1 rounded to NUM2 decimal places.",
  370. 0,
  371. "rnd",
  372. "Random integer                rnd(num)",
  373. "",
  374. "A random integer from 0 to NUM-1.",
  375. 0,
  376. "negate",
  377. "Negation                negate(num)",
  378. "",
  379. "Equivalent to `0 - NUM'.",
  380. 0,
  381.  
  382.  
  383.  
  384.  
  385. "exp",
  386. "Exponential                exp(num)",
  387. "",
  388. "The exponential function of NUM.",
  389. 0,
  390. "log",
  391. "Log                    log(num)",
  392. "",
  393. "The natural log of NUM.",
  394. 0,
  395. "log10",
  396. "Log base 10                log10(num)",
  397. "",
  398. "The log of NUM to base 10.",
  399. 0,
  400. "sqrt",
  401. "Square root                sqrt(num)",
  402. "",
  403. "The square-root of NUM.",
  404. 0,
  405.  
  406.  
  407.  
  408. /* Trig functions */
  409.  
  410. "pi",
  411. "Constant                pi()",
  412. "",
  413. "3.14159265358979326848",
  414. 0,
  415. "acos",
  416. "Arc cosine                acos(num)",
  417. "",
  418. "The arc cosine (in radians) of NUM.",
  419. 0,
  420. "asin",
  421. "Arc sine                asin(num)",
  422. "",
  423. "The arc sine (in radians) of NUM.",
  424. 0,
  425. "atan",
  426. "Arc tangant                atan(num)",
  427. "",
  428. "The arc tangent (in radians) of NUM.",
  429. 0,
  430. "cos",
  431. "Cosine                    cos(num)",
  432. "",
  433. "The cosine of NUM (NUM in radians)",
  434. 0,
  435. "dtr",
  436. "Degrees to radians            dtr(num)",
  437. "",
  438. "NUM degrees converted to radians.",
  439. 0,
  440. "rtd",
  441. "Radians to degrees            rtd(num)",
  442. "",
  443. "NUM radians converted to degrees.",
  444. 0,
  445. "sin",
  446. "Sine                    sin(num)",
  447. "",
  448. "The sine of NUM (NUM in radians).",
  449. 0,
  450. "tan",
  451. "Tangent                    tan(num)",
  452. "",
  453. "The tangent of NUM (NUM in radians).",
  454. 0,
  455. "atan2",
  456. "Expanded arc tangent            atan2(num1,num2)",
  457. "",
  458. "Returns the arc tangent (in radians) of NUM1 / NUM2.",
  459. "The range of atan2 is (-pi..pi).  The quadrant of the angle returned",
  460. "is determined by the signs of NUM1 and NUM2:",
  461. "",
  462. "                (pi/2)",
  463. "               |",
  464. "              NUM2 < 0 |  both > 0",
  465. "               |",
  466. "   (pi,-pi) -------------------------- (0)",
  467. "              both < 0 |  NUM1 < 0",
  468. "               |",
  469. "               |",
  470. "               -(pi/2)",
  471. 0,
  472. "hypot",
  473. "Length of t he hypoteneus        hypot(num1,num2)",
  474. "",
  475. "Returns `sqrt (NUM1 * NUM1 + NUM2 * NUM2)'.  ",
  476. "",
  477. "Calling `hypot' may succeed in cases when the equivalent expression",
  478. "might underflow or overflow.",
  479. 0,
  480.  
  481. "oneof",
  482. "Case expression                oneof(choice,val1,val2,val3...)",
  483. "",
  484. "If CHOICE is 1, return VAL1, if 2, VAL2, and so forth.",
  485. "If CHOICE is not a valid integer in the appropriate range, the value is",
  486. "#OUT_OF_RANGE.  If no value arguments are supplied, the value is #NO_VALUES.",
  487. 0,
  488.  
  489. "sum",
  490. "Sum of values                sum(vr1, vr2, ...)",
  491. "",
  492. "The sum of VR1, VR2, etc.  ",
  493. "",
  494. "Each value can be either a numeric type or a range.  If the value is a range, ",
  495. "the values of all numeric cells in that range are used.",
  496. "",
  497. "If none of the arguments include valid numbers (e.g. `sum(r1:10c1:10)'",
  498. "where that range is empty), then the value is #NO_VALUES.  To ensure",
  499. "that the expression doesn't return an error in cases like that,",
  500. "provide a default value as an extra argument to sum",
  501. "(e.g. `sum(0,r1:10c1:10)').",
  502. 0,
  503. "prod",
  504. "Product of values            prod(vr1, vr2, ...)",
  505. "",
  506. "The product of VR1, VR2, etc.  ",
  507. "",
  508. "Each value can be either a numeric type or a range.  If the value is a range, ",
  509. "the values of all numeric cells in that range are used.",
  510. "",
  511. "If none of the arguments include valid numbers (e.g. `prod(r1:10c1)'",
  512. "where that range is empty), then the value is #NO_VALUES.  To ensure",
  513. "that the expression doesn't return an error in cases like that,",
  514. "provide a default value as an extra argument to product (e.g. `prod(1,",
  515. "r1:10c1)').",
  516. 0,
  517.  
  518. "avg",
  519. "Average                    avg(vr1...)",
  520. "",
  521. "The average of VR1, VR2, etc.  ",
  522. "",
  523. "Each value can be either a numeric type or a range.  If the value is a range, ",
  524. "the values of all numeric cells in that range are used.",
  525. "",
  526. "If none of the arguments include valid numbers (e.g. `avg(r1:10c1)'",
  527. "where that range is empty), then the value is #NO_VALUES.",
  528. 0,
  529. "std",
  530. "Standard deviation            std(vr1...)",
  531. "",
  532. "The SAMPLE standard deviation.  ",
  533. "To get the population standard deviation, use sqrt(var(...))",
  534. "",
  535. "Each value can be either a numeric type or a range.  If the value is a range, ",
  536. "the values of all numeric cells in that range are used.",
  537. "",
  538. "If none of the arguments include valid numbers (e.g. `avg(r1:10c1)'",
  539. "where that range is empty), then the value is #NO_VALUES.",
  540. 0,
  541. "max",
  542. "Maximum                    max(vr1...)",
  543. "",
  544. "Return the maximum value of all the arguments.",
  545. "",
  546. "Each value can be either a numeric type or a range.  If the value is a range, ",
  547. "the values of all numeric cells in that range are used.",
  548. "",
  549. "If none of the arguments include valid numbers (e.g. `max(r1:10c1)'",
  550. "where that range is empty), then the value is #NO_VALUES.  To ensure",
  551. "that the expression doesn't return an error in cases like that,",
  552. "provide a default value as an extra argument to maximum (e.g. `max(0,",
  553. "r1:10c1)').",
  554. 0,
  555. "min",
  556. "Minimum                    min(vr1...)",
  557. "",
  558. "Return the minimum value of all the arguments.",
  559. "",
  560. "Each value can be either a numeric type or a range.  If the value is a range, ",
  561. "the values of all numeric cells in that range are used.",
  562. "",
  563. "If none of the arguments  include valid numbers (e.g. `min(r1:10c1)'",
  564. "where that range is empty), then the value is #NO_VALUES.  To ensure that the",
  565. "expression doesn't return an error in cases like that, provide a default value",
  566. "as an extra argument to minimum (e.g. `min(99999, r1:10c1)').",
  567. 0,
  568. "cnt",
  569. "Count numbers                cnt(vr1...)",
  570. "",
  571. "The number of numeric values found amongst the arguments.",
  572. "",
  573. "Each value can be either a numeric type or a range.  If the value is a range, ",
  574. "the values of all numeric cells in that range are used.",
  575. 0,
  576. "var",
  577. "Population variance            var(vr1...)",
  578. "",
  579. "The population varianc of the arguments.",
  580. "",
  581. "Each value can be either a numeric type or a range.  If the value is a range, ",
  582. "the values of all numeric cells in that range are used.",
  583. "",
  584. "To get the sample variance, use std(...)^2",
  585. 0,
  586.  
  587.       /* string functions */
  588. "len",
  589. "String length                len(str)",
  590. "",
  591. "The number of characters in STR.",
  592. 0,
  593. "strlwr",
  594. "Conversion to lower case        strlwr(str)",
  595. "",
  596. "STR, converted to lower case.",
  597. 0,
  598. "strupr",
  599. "Conversion to upper case        strupr(str)",
  600. "",
  601. "STR, converted to upper case.",
  602. 0,
  603. "strcap",
  604. "String capitalization            strcap(str)",
  605. "",
  606. "STR, with each word capitalized.",
  607. 0,
  608. "trim",
  609. "String beautifier            trim(str)",
  610. "",
  611. "STR, with extra spaces and non-ascii characters removed.",
  612. 0,
  613. "find",
  614. "find(str1,str2,int)",
  615. "",
  616. "Return the location after INT where STR2 appears in STR1.",
  617. 0,
  618. "substr",
  619. "Extract substring by position        substr(int1,int2,str)",
  620. "",
  621. "Extract the substring from INT1 to INT2 of STR.",
  622. "",
  623. "Positive indexes are counted from the beginning of STR, starting with 1.",
  624. "Negative indexes are counted from the end of STR, starting with -1.",
  625. "See also, `mid'.",
  626. 0,
  627. "mid",
  628. "Extract substring by extent        mid(str,int1,int2)",
  629. "",
  630. "The characters in STR from INT1 and continuing for INT2 characters.",
  631. "INT1 is counted from the beginning of the string, starting with 1.",
  632. "See also, `substr'.",
  633. 0,
  634. "edit",
  635. "Delete part of a string            edit(str,int1,int2,...)",
  636. "",
  637. "Return STR with chars INT1 through INT2 removed.",
  638. "INT1 and INT2 behave as with `substr'.",
  639. 0,
  640. "repeat",
  641. "Construct a repeated string        repeat(str,int)",
  642. "",
  643. "Return INT concatenations of STR; thus repeat(\"foo\",2) returns \"foofoo\".",
  644. 0,
  645. "concat",
  646. "Concatenate string             concat(vr1,...)",
  647. "",
  648. "Return the concatenation of all strings in the arguments.",
  649. "An argument may be a range, in which case the cell values in the range are",
  650. "concatenated.",
  651. 0,
  652.  
  653.  
  654.     /* busy-ness functions */
  655. "pmt",
  656. "Loan payments            pmt(p,r,t)",
  657. "",
  658. "Payment per period for a loan of principle P at rate R for T payments.",
  659. 0,
  660. "pv",
  661. "Present value of investment    pv(pmt,int,term)",
  662. "",
  663. "Present value of an investment that pays $PMT at the end of each of",
  664. "TERM periods with a discount rate (interest) of INT.",
  665. 0,
  666. "npv",
  667. "Net present value        npv(rng,rate)",
  668. "",
  669. "Net Present Value of an investment which will pay uneaven payments.",
  670. "The term is calculated from the number of cells in RNG.",
  671. 0,
  672. "irr",
  673. "Intrenal rate or return        irr(rng,guess)",
  674. "",
  675. "Internal Rate of Return.  This function is paticularly untested, and",
  676. "should not be trusted.",
  677. "",
  678. "Returns #BAD_INPUT if it does not converge for the given input.",
  679. 0,
  680. "fv",
  681. "Future value of an annuity    fv(pmt,int,term)",
  682. "",
  683. "Future Value of an annuity.",
  684. 0,
  685. "rate",
  686. "rate(fut,pres,term)",
  687. "",
  688. "Interest rate required to turn $PRES into $FUT in TERM periods.",
  689. "",
  690. 0,
  691. "term",
  692. "term(pmt,int,fut)",
  693. "",
  694. "Number of periods required to collect $FUT in payments of $PMT, where",
  695. "depositd payments earn at a rate of INT.",
  696. 0,
  697. "cterm",
  698. "cterm(int,fut,pres)",
  699. "",
  700. "Number of periods required to collect $FUT from a single initial",
  701. "deposit of $PRES, at an interest rate of INT.",
  702. "",
  703. 0,
  704. "sln",
  705. "sln(cost,scrap,life)",
  706. "",
  707. "Straight line depreciation of an asset that cost",
  708. "$COST when new, can be sold for $SCRAP, and will last for LIFE",
  709. "periods.",
  710. "",
  711. 0,
  712. "syd",
  713. "syd(cost,scrap,life,per)",
  714. "",
  715. "Sum-of-the-digits depreciation of an asset that cost $COST, can be",
  716. "sold for $SCRAP and lasts LIFE, in period PER.",
  717. 0,
  718. "ddb",
  719. "ddb(cost,scrap,life,per)",
  720. "",
  721. "Double-declining-balance deprecion, otherwise similar to syd().",
  722. 0,
  723. "anrate",
  724. "anrate(pmt,pres,term)",
  725. "",
  726. "(undocumented -- documentation from volunteers welcome).",
  727. 0,
  728. "anterm",
  729. "anterm(pmt,prin,rate)",
  730. "",
  731. "(undocumented -- documentation from volunteers welcome).",
  732. 0,
  733. "balance",
  734. "balance(prin,rate,term,period)",
  735. "",
  736. "(undocumented -- documentation from volunteers welcome).",
  737. 0,
  738. "paidint",
  739. "paidint(prin,rate,term,period)",
  740. "",
  741. "(undocumented -- documentation from volunteers welcome).",
  742. 0,
  743. "kint",
  744. "kint(prin,rate,term,period)",
  745. "",
  746. "(undocumented -- documentation from volunteers welcome).",
  747. 0,
  748. "kprin",
  749. "kprin(prin,rate,term,period)",
  750. "",
  751. "(undocumented -- documentation from volunteers welcome).",
  752. 0,
  753. "compbal",
  754. "compbal(print,rate,term)",
  755. "",
  756. "(undocumented -- documentation from volunteers welcome).",
  757. 0, 
  758.  
  759.                  /* Date functions */
  760. "hms_to_time",
  761. "hms_to_time(hours, minutes, seconds)",
  762. "",
  763. "Convert HOURS, MINS, and SECS to a time value (a number of seconds).",
  764. 0,
  765. "dhms_to_time",
  766. "dhms_to_time(days, hours, minutes, seconds)",
  767. "",
  768. "Convert DAYS, HOURS, MINS, and SECS to a time value (a number of seconds).",
  769. 0,
  770. "time_to_d",
  771. "time_to_d(time)",
  772. "",
  773. "Return the number of days in TIME.  (TIME should be a number of seconds).",
  774. 0,
  775. "time_to_h",
  776. "time_to_h(time)",
  777. "",
  778. "Return the number of hours in TIME.  (TIME should be a number of seconds).",
  779. "The return value will be in the range 0..23.",
  780. 0,
  781. "time_to_m",
  782. "time_to_m(time)",
  783. "",
  784. "Return the number of minutes in TIME.  (TIME should be a number of seconds).",
  785. "The return value will be in the range 0..59.",
  786. 0,
  787. "time_to_s",
  788. "time_to_s(time)",
  789. "",
  790. "Return the number of seconds in TIME.  (TIME should be a number of seconds).",
  791. "The return value will be in the range 0..59.",
  792. 0,
  793. "ymd",
  794. "ymd(year, month, day)",
  795. "",
  796. "Convert YEAR, MONTH, and DAY to a time value (a number of seconds).",
  797. "Typicly the return value is the number of seconds since January 1, 1970.",
  798. "The conversion assumes the local time zone.",
  799. 0,
  800. "ymd_dst",
  801. "ymd_dst(year, month, day, dst)",
  802. "",
  803. "Convert YEAR, MONTH, DAY and DST to a time value (a number of seconds).",
  804. "Typicly the return value is the number of seconds since January 1, 1970.",
  805. "The conversion assumes the local time zone except that daylight savings",
  806. "time is assumed if dst is positive and stanard time is assumed if DST",
  807. "is 0.  If DST is less than 0, this is the same as ymd(year,month,day).",
  808. 0,
  809. "local_year",
  810. "local_year(time)",
  811. "",
  812. "For a time (e.g., returned by now()) return its year in the local timezone.",
  813. 0,
  814. "local_month",
  815. "local_month(time)",
  816. "",
  817. "For a time (e.g., returned by now()) return its month in the local timezone.",
  818. 0,
  819. "local_date",
  820. "local_date(time)",
  821. "",
  822. "For a time (e.g., returned by now()) return its date in the local timezone.",
  823. 0,
  824. "local_hour",
  825. "local_hour(time)",
  826. "",
  827. "For a time (e.g., returned by now()) return its hour in the local timezone.",
  828. 0,
  829. "local_min",
  830. "local_min(time)",
  831. "",
  832. "For a time (e.g., returned by now()) return minutes in the local timezone.",
  833. 0,
  834. "local_sec",
  835. "local_sec(time)",
  836. "",
  837. "For a time (e.g., returned by now()) return seconds in the local timezone.",
  838. 0,
  839. "local_isdst",
  840. "local_isdst(time)",
  841. "",
  842. "For a time (e.g., returned by now()) return dst in the local timezone.",
  843. "The return is positive if dst is in effect, 0 otherwise.",
  844. 0,
  845. "local_yday",
  846. "local_yday(time)",
  847. "",
  848. "For a time (e.g., returned by now()) give day-of-year in the local timezone.",
  849. "The return value is in the range 0..364 (0..365 for leapyears)",
  850. 0,
  851. "local_wday",
  852. "local_wday(time)",
  853. "",
  854. "For a time (e.g., returned by now()) return day (0-6) in the local timezone.",
  855. 0,
  856. "gmt_year",
  857. "gmt_year(time)",
  858. "",
  859. "For a time (e.g., returned by now()) return its year in Greenwich.",
  860. 0,
  861. "gmt_month",
  862. "gmt_month(time)",
  863. "",
  864. "For a time (e.g., returned by now()) return its month in Greenwich.",
  865. 0,
  866. "gmt_date",
  867. "gmt_date(time)",
  868. "",
  869. "For a time (e.g., returned by now()) return its date in Greenwich.",
  870. 0,
  871. "gmt_hour",
  872. "gmt_hour(time)",
  873. "",
  874. "For a time (e.g., returned by now()) return its hour in Greenwich.",
  875. 0,
  876. "gmt_min",
  877. "gmt_min(time)",
  878. "",
  879. "For a time (e.g., returned by now()) return minutes in Greenwich.",
  880. 0,
  881. "gmt_sec",
  882. "gmt_sec(time)",
  883. "",
  884. "For a time (e.g., returned by now()) return seconds in Greenwich.",
  885. 0,
  886. "gmt_isdst",
  887. "gmt_isdst(time)",
  888. "",
  889. "For a time (e.g., returned by now()) tell if it's dst in Greenwich.",
  890. "The return is positive if dst is in effect, 0 otherwise.",
  891. 0,
  892. "gmt_yday",
  893. "gmt_yday(time)",
  894. "",
  895. "For a time (e.g., returned by now()) the day-of-year (0-365) in Greenwich.",
  896. 0,
  897. "gmt_wday",
  898. "gmt_wday(time)",
  899. "",
  900. "For a time (e.g., returned by now()) return the day (0-6) in Greenwich.",
  901. 0,
  902. "get_date",
  903. "get_date(date_string)",
  904. "",
  905. "Parse a date and return its time (seconds since epoch).",
  906. "The syntax of dates is the same as is understood by GNU tar or GNU date.",
  907. 0,
  908. "posix_date",
  909. "posix_date(posix_date_string)",
  910. "",
  911. "Parse a date and return its time (seconds since epoch).",
  912. "The syntax of dates follows the Posix standard (as understood by GNU date).",
  913. 0,
  914. "strftime",
  915. "strftime(format_string, time_val)",
  916. "",
  917. "Return a string according to FORMAT describing TIME (as returned by now()).",
  918. "The format string may contain these escape codes:",
  919. "",
  920. "This function is implemented by the C library function strftime.",
  921. "The following documentation describes the GNU implementation of strftime.",
  922. "Your version of Oleo may have been built with a different version, in",
  923. "which case, you can find documentation in the strftime man page.",
  924. "(In the future this anomoly will be removed).",
  925. "",
  926. "Performs `%' substitutions similar to those in printf.  Except",
  927. "where noted, substituted fields have a fixed size; numeric fields are",
  928. "padded if necessary.  Padding is with zeros by default; for fields",
  929. "that display a single number, padding can be changed or inhibited by",
  930. "following the `%' with one of the modifiers described below.  Unknown",
  931. "field specifiers are copied as normal characters.  All other",
  932. "characters are copied to the output without change.",
  933. "",
  934. "Supports a superset of the ANSI C field specifiers.",
  935. "",
  936. "Literal character fields:",
  937. "%    %",
  938. "n    newline",
  939. "t    tab",
  940. "",
  941. "Numeric modifiers (a nonstandard extension):",
  942. "-    do not pad the field",
  943. "_    pad the field with spaces",
  944. "",
  945. "Time fields:",
  946. "%H    hour (00..23)",
  947. "%I    hour (01..12)",
  948. "%k    hour ( 0..23)",
  949. "%l    hour ( 1..12)",
  950. "%M    minute (00..59)",
  951. "%p    locale's AM or PM",
  952. "%r    time, 12-hour (hh:mm:ss A/PM)",
  953. "%R    time, 24-hour (hh:mm)",
  954. "%S    second (00..61)",
  955. "%T    time, 24-hour (hh:mm:ss)",
  956. "%X    locale's time representation (%H:%M:%S)",
  957. "%Z    time zone (EDT), or nothing if no time zone is determinable",
  958. "",
  959. "Date fields:",
  960. "%a    locale's abbreviated weekday name (Sun..Sat)",
  961. "%A    locale's full weekday name, variable length (Sunday..Saturday)",
  962. "%b    locale's abbreviated month name (Jan..Dec)",
  963. "%B    locale's full month name, variable length (January..December)",
  964. "%c    locale's date and time (Sat Nov 04 12:02:33 EST 1989)",
  965. "%C    century (00..99)",
  966. "%d    day of month (01..31)",
  967. "%e    day of month ( 1..31)",
  968. "%D    date (mm/dd/yy)",
  969. "%h    same as %b",
  970. "%j    day of year (001..366)",
  971. "%m    month (01..12)",
  972. "%U    week number of year with Sunday as first day of week (00..53)",
  973. "%w    day of week (0..6)",
  974. "%W    week number of year with Monday as first day of week (00..53)",
  975. "%x    locale's date representation (mm/dd/yy)",
  976. "%y    last two digits of year (00..99)",
  977. "%Y    year (1970...)",
  978.  
  979. 0,
  980.  
  981.  
  982. "help-with-help",
  983. "",
  984. "Valid help characters are:",
  985. "",
  986. "c  --     describe-character-briefly",
  987. "    Type a command key sequence; it prints the function name that",
  988. "    sequence runs.",
  989. "f  --  describe-function",
  990. "    Type a function name and get full documentation for that function.",
  991. "F  --  describe-formula",
  992. "    Type the name of a formula function, and get full documentation.",
  993. "k  --    describe-key",
  994. "    Type a command key sequence and get full documentation for the",
  995. "    function that sequence runs.", 
  996. "o  --  show-options",
  997. "    Print the current settings of all user options.",
  998. "v  --  show-variable",
  999. "    Type a variable name and get it's binding.",
  1000. "^v --  show-all-variables",
  1001. "    Print a list of all variables and their bindings.",
  1002. "w  --    where-is",
  1003. "    Type a command name and get a keysequence that invokes that command.",
  1004. "W  --  view-wallchart",
  1005. "    Display a list of keybindings.",
  1006. "^W --  print-wallchart",
  1007. "    Write a list of keybindings to a file.",
  1008. 0,
  1009. "graphing",
  1010. "",
  1011. "[graph-presets-verbosely]    --  Reset graphing parameters to default values.",
  1012. "[graph-clear-verbosely]    --  Clear the datasets of their assigned ranges.",
  1013. "[graph-select-output]    --  Choose the output type for graphs.",
  1014. "[graph-set-data]    --  Assign a range of data to a dataset in the graph.",
  1015. "[graph-verify]    --  Verify graph parameters.",
  1016. "[graph-plot]    --  Plot with the current parameters.",
  1017. "",
  1018. "The following control optional parameters:",
  1019. "",
  1020. "[graph-x-axis]    --  Define parameters relating the X axis.",
  1021. "[graph-y-axis]    --  Define parameters relating the Y axis.",
  1022. "[graph-set-data-title]    --  Assign a title to a dataset.",
  1023. "[graph-set-style]    --  Assign a style to a dataset.",
  1024. "",
  1025. "Esc    --  End this command.",
  1026. 0,
  1027. "graph-x-axis-help",
  1028. "",
  1029. "[graph-set-x-range-low]    --  Set the beginning of the range of the X axis.",
  1030. "[graph-set-x-range-high]    --  Set the end of the range of the X axis.",
  1031. "[graph-set-x-axis-symbolic]    --  Specify a symbolic range for X.",
  1032. "[graph-set-x-labels]    --  Provide labels for tic marks on the X axis.",
  1033. "[graph-default-x-labels]    --  Use the default tic marks on the X axis.",
  1034. "",
  1035. "",
  1036. "Esc    --  End this command.",
  1037. 0,
  1038. "graph-y-axis-help",
  1039. "",
  1040. "[graph-set-y-range-low]    --  Set the beginning of the range of the Y axis.",
  1041. "[graph-set-y-range-high]    --  Set the end of the range of the Y axis.",
  1042. "[graph-set-y-labels]    --  Provide labels for tic marks on the Y axis.",
  1043. "[graph-default-y-labels]    --  Use the default tic marks on the Y axis.",
  1044. "",
  1045. "Esc    --  End this command.",
  1046. 0,
  1047. "graph-output-types",
  1048. "",
  1049. "[graph-x11-mono]    --  Draw the graph in an X window, in black and white.",
  1050. "[graph-x11-color]    --  Draw the graph in an X window, in color.",
  1051. "[graph-postscript]    --  Write a file of postscript commands that draw that graph.",
  1052. 0,
  1053. "keybindings-wallchart",
  1054. "",
  1055. "               General Utility",
  1056. "[[main]]",
  1057. "Abort the current command, or partial keysequence    [break]",
  1058. "Set repeat counts and other prefix arguments        [universal-argument]",
  1059. "Jane, stop this crazy thing                [kill-oleo]",
  1060. "Redraw the screen                    [redraw-screen]",
  1061. "Suspend Oleo                        [suspend-oleo]",
  1062. "Call a command by name                    [execute-command]",
  1063. "Recalculate                        [recalculate]",
  1064. "",
  1065. "",
  1066. "                Help Commands",
  1067. "",
  1068. "Describe key briefly    [describe-key-briefly]",
  1069. "Describe key        [describe-key]",
  1070. "Describe function    [describe-function]",
  1071. "Describe formula    [describe-formula]",
  1072. "Where is        [where-is]",
  1073. "",
  1074. "",
  1075. "When a complex command is being invoked (i.e., when Oleo is prompting",
  1076. "you for arguments), the next command displays documentation for the",
  1077. "command being invoked.  This can often be used to get more information",
  1078. "about what is being prompted for:",
  1079. "",
  1080. "Help with command    [help-with-command]",
  1081. "",
  1082. "",
  1083. "",
  1084. "              Cell Cursor Motion",
  1085. "",
  1086. "Every window has it's own cell cursor.  The most recently used window",
  1087. "defines the current cell position.  There is one cell marker, global to ",
  1088. "the spreadsheet.",
  1089. "",
  1090. "Move the cell cursor to a specific address        [goto-cell]",
  1091. "Set the cell cursor and the cell mark            [goto-region]",
  1092. "",
  1093. "Set the cell mark to the current cell            [mark-cell]",
  1094. "(to set the cell cursor equal to the mark, and clear the mark,",
  1095. " use `[universal-argument][mark-cell]').",
  1096. "",
  1097. "Exchange the cell cursor and cell mark            [exchange-point-and-mark]",
  1098. "(To clear the mark, use `[universal-argument][exchange-point-and-mark]'.)",
  1099. "",
  1100. "",
  1101. "",
  1102. "                  Navigation",
  1103. "",
  1104. "Under X, and on some terminals (those following the ANSI standard)",
  1105. "arrow keys can be used to move the cell cursor.",
  1106. "",
  1107. "up    [up-cell]        down    [down-cell]",
  1108. "right    [right-cell]        left    [left-cell]",
  1109. "",
  1110. "Though they have no default bindings, there are also the commands:",
  1111. "   upright-cell, upleft-cell, downright-cell, downleft-cell",
  1112. "",
  1113. "Some commands go to extremes but leave their mark (if none is already set):",
  1114. "",
  1115. "Upper left    [upper-left]",
  1116. "Lower right    [lower-right]",
  1117. "",
  1118. "Beginning of row    [beginning-of-row]",
  1119. "Beginning of col    [beginning-of-col]",
  1120. "End of row        [end-of-row]",
  1121. "End of col        [end-of-col]",
  1122. "",
  1123. "These commands find the boundries between filled and empty cells. They",
  1124. "are similar to word motion commands in Emacs.",
  1125. "",
  1126. "Scan up        [scan-up]",
  1127. "Scan down    [scan-down]",
  1128. "Scan right    [scan-right]",
  1129. "Scan left    [scan-left]",
  1130. "",
  1131. "",
  1132. "              Scrolling commands",
  1133. "",
  1134. "These are used to change the visible range of a window.",
  1135. "",
  1136. "Scroll up    [scroll-up]",
  1137. "Scroll down    [scroll-down]",
  1138. "Scroll right    [scroll-right]",
  1139. "Scroll left    [scroll-left]",
  1140. "",
  1141. "These commands are also availble but not normally bound:",
  1142. "scroll-upright, scroll-upleft, scroll-downright, scroll-downleft",
  1143. "",
  1144. "",
  1145. "",
  1146. "              Commands related to macros",
  1147. "",
  1148. "Oleo can read keystrokes, and can save keysequences in cells for later",
  1149. "re-execution.",
  1150. "  ",
  1151. "Start entering macro    [start-entering-macro]",
  1152. "Stop entering macro    [stop-entering-macro]",
  1153. "Call last kbd macro    [call-last-kbd-macro]",
  1154. "End macro        [end-macro]",
  1155. "Store last macro    [store-last-macro]",
  1156. "Run string as macro    [run-string-as-macro]",
  1157. "",
  1158. "",
  1159. "",
  1160. "                Global options",
  1161. "",
  1162. "These are global parameters under user control (e.g. The a0/noa0",
  1163. "option that selects a syntax for cell addresses (either A1 or R1C1)).",
  1164. "",
  1165. "Show options        [show-options]",
  1166. "Set option        [set-option]",
  1167. "",
  1168. "",
  1169. "",
  1170. "                  Variables",
  1171. "",
  1172. "Variables are symbolic names for regions of a spreadsheet.  Once",
  1173. "defined, they can be used in cell formulas as region addresses.  They",
  1174. "can also be used as arguments to any command that expects a region",
  1175. "address.",
  1176. "",
  1177. "Set variable        [set-variable]",
  1178. "Show variable        [show-variable]",
  1179. "Show all variables    [show-all-variables]",
  1180. "",
  1181. "",
  1182. "",
  1183. "                File commands",
  1184. "",
  1185. "Read a spreadsheet    [find-alternate-spreadsheet]",
  1186. "Save a spreadsheet    [save-spreadsheet]",
  1187. "Merge spreadsheet    [merge-spreadsheet]",
  1188. "Write region to file    [write-region-to-file]",
  1189. "",
  1190. "By default, if a spreadsheet defines a variable `load_hooks', the",
  1191. "macro in that region is executed when the spreadsheet is first read.",
  1192. "This behavior can be disabled or reinabled by:",
  1193. "",
  1194. "Toggle load hooks    [toggle-load-hooks]",
  1195. "",
  1196. "The next command reads a file of commands (such as a .oleorc file):",
  1197. "",
  1198. "Read commands        [read-commands]",
  1199. "",
  1200. "",
  1201. "",
  1202. "                   Printing",
  1203. "",
  1204. "Write an ascii rendition of a region            [print-region]",
  1205. "Write an embedded postscript rendition of a region    [psprint-region]",
  1206. "Set page size for postscript printing            [set-page-size]",
  1207. "",
  1208. "",
  1209. "",
  1210. "                   Plotting",
  1211. "",
  1212. "The command `[graph-setup]' accesses the Oleo interface to gnuplot.  If",
  1213. "you have gnuplot, you can draw graphs of Oleo data, either on the",
  1214. "screen, or in postscript.",
  1215. "",
  1216. "",
  1217. "             Operations on entire regions",
  1218. "",
  1219. "Copy region        [copy-region]",
  1220. "Copy values in region    [copy-values-in-region]",
  1221. "Move region        [move-region]",
  1222. "",
  1223. "Insert row        [insert-row]",
  1224. "Insert col        [insert-col]",
  1225. "",
  1226. "Delete row        [delete-row]",
  1227. "Delete col        [delete-col]",
  1228. "",
  1229. "Delete region        [delete-region]",
  1230. "Clear spreadsheet    [clear-spreadsheet]",
  1231. "",
  1232. "",
  1233. "Window Commands ",
  1234. "",
  1235. "Recenter window            [recenter-window]",
  1236. "Open window            [open-window]",
  1237. "Split window horizontally    [split-window-horizontally]",
  1238. "Split window vertically        [split-window-vertically]",
  1239. "Delete window            [delete-window]",
  1240. "Delete other windows        [delete-other-windows]",
  1241. "Close window            [close-window]",
  1242. "Goto window            [goto-window]",
  1243. "Goto minibuffer            [goto-minibuffer]",
  1244. "Other window            [other-window]",
  1245. "",
  1246. "",
  1247. "",
  1248. "Cell attribute commands",
  1249. "",
  1250. "Set region height        [set-region-height]",
  1251. "Set region width        [set-region-width]",
  1252. "Set region protection        [set-region-protection]",
  1253. "Set region alignment        [set-region-alignment]",
  1254. "Set region format        [set-region-format]",
  1255. "Set cell height            [set-cell-height]",
  1256. "Set cell width            [set-cell-width]",
  1257. "Set cell protection        [set-cell-protection]",
  1258. "Set cell alignment        [set-cell-alignment]",
  1259. "Set cell format            [set-cell-format]",
  1260. "Set default height        [set-default-height]",
  1261. "Set default width        [set-default-width]",
  1262. "Set default protection        [set-default-protection]",
  1263. "Set default alignment        [set-default-alignment]",
  1264. "Set default format        [set-default-format]",
  1265. "Define user format        [define-user-format]",
  1266. "",
  1267. "",
  1268. "",
  1269. "                   Keymaps",
  1270. "",
  1271. "Create keymap            [create-keymap]",
  1272. "Set map prompt            [set-map-prompt]",
  1273. "Bind key            [bind-key]",
  1274. "Bind set            [bind-set]",
  1275. "Bind all keys            [bind-all-keys]",
  1276. "Write keys            [write-keys]",
  1277. "",
  1278. "",
  1279. "",
  1280. "                Editing cells",
  1281. "",
  1282. "Edit cell            [edit-cell]",
  1283. "Set region formula        [set-region-formula]",
  1284. "",
  1285. "Delete cell            [delete-cell]",
  1286. "Delete region            [delete-region]",
  1287. "",
  1288. "Clear spreadsheet        [clear-spreadsheet]",
  1289. "",
  1290. "From the main keymap, typing almost any printable character begins ",
  1291. "to edit the value of a cell.",
  1292. "",
  1293. "These commands provide efficent motion while editing cells:",
  1294. "[[read-formula]]",
  1295. "Next edit            [next-edit]",
  1296. "Next edit-set            [next-edit-set]",
  1297. "",
  1298. "",
  1299. "These commands set the directions used by `[next-edit]' and",
  1300. "`[next-edit-set]': ",
  1301. "",
  1302. "Auto move up            [auto-move-up]",
  1303. "Auto move down            [auto-move-down]",
  1304. "Auto move left            [auto-move-left]",
  1305. "Auto move right            [auto-move-right]",
  1306. "Auto move up left        [auto-move-up-left]",
  1307. "Auto move up right        [auto-move-up-right]",
  1308. "Auto move down left        [auto-move-down-left]",
  1309. "Auto move down right        [auto-move-down-right]",
  1310. "Auto move no motion        [auto-move-no-motion]",
  1311. "",
  1312. "",
  1313. "              Editing in the input area",
  1314. "",
  1315. "Toggle overwrite        [toggle-overwrite]",
  1316. "Beginning of line        [beginning-of-line]",
  1317. "End of line            [end-of-line]",
  1318. "Backward char            [backward-char]",
  1319. "Backward word            [backward-word]",
  1320. "Backward delete char        [backward-delete-char]",
  1321. "Backward delete word        [backward-delete-word]",
  1322. "Delete to start            [delete-to-start]",
  1323. "Forward char            [forward-char]",
  1324. "Forward word            [forward-word]",
  1325. "Delete char            [delete-char]",
  1326. "Delete word            [delete-word]",
  1327. "Kill line            [kill-line]",
  1328. "Insert cell expression        [insert-cell-expression]",
  1329. "Insert cell value        [insert-cell-value]",
  1330. "Insert rel ref            [insert-rel-ref]",
  1331. "Insert abs ref            [insert-abs-ref]",
  1332. 0,
  1333. "_NON_WARRANTY_",
  1334. "",
  1335. " Copyright (C) 1990, 1991, 1992, 1993 Free Software Foundation,Inc.",
  1336. "There is ABSOLUTELY NO WARRANTY for Oleo; see the file COPYING",
  1337. "for details.  Oleo is free software and you are welcome to distribute",
  1338. "copies of it under certain conditions; see the file COPYING to see the",
  1339. "conditions.",
  1340. "",
  1341. "        The help character is ^H",
  1342. "",
  1343. "        [Press any key to begin]",
  1344. 0,
  1345. 0,
  1346. };
  1347.  
  1348.  
  1349. /* Search for some formula documentation. */
  1350.  
  1351. #ifdef __STDC__
  1352. char **
  1353. forminfo_text (char * name)
  1354. #else
  1355. char **
  1356. forminfo_text (name)
  1357.      char * name;
  1358. #endif
  1359. {
  1360.   char ** pos = formula_info;
  1361.   while (*pos)
  1362.     if (!stricmp (name, *pos))
  1363.       return pos;
  1364.     else
  1365.       while (*pos++) ;
  1366.   return 0;
  1367. }
  1368.  
  1369.